package com.jobsika.client.profile;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.jobsika.domain.RPCUser;

public class Profile extends Composite {
	private VerticalPanel skeleton;
	
	public Profile() {
		skeleton = new VerticalPanel();
		this.initWidget(skeleton);
	}
	
	public Profile(RPCUser user) {
		this();
		Label email = new Label(user.getEmail());
		Label name = new Label(user.getFirstName()+" "+user.getLastName());

		Label contact = new Label("Contact:");
		Label education = new Label("Education:");
		Label berkeley = new Label("University of California, Berkeley");
		Label compsci = new Label("Compute Science, BA");
		
		name.setStyleName("profile-title");
		email.setStyleName("profile-item");
		contact.setStyleName("profile-subtitle");
		education.setStyleName("profile-subtitle");
		education.addStyleName("profile-space");
		berkeley.setStyleName("profile-item");
		compsci.setStyleName("profile-item");
		this.setStyleName("profile");
		
		skeleton.add(name);
		skeleton.add(contact);
		skeleton.add(email);
		skeleton.add(education);
		skeleton.add(berkeley);
		skeleton.add(compsci);
		Button call = new Button("Call");
		call.addStyleName("profile-call");
		skeleton.add(call);
		Button add = new Button("Add");
		add.addStyleName("profile-call");
		skeleton.add(add);
	}
}
